import request from '@/utils/request'

export function listgoodClass(query) {
  return request({
    url: '/materialClass/list',
    method: 'get',
    params: query
  })
}

export function creategoodClass(data) {
  return request({
    url: '/materialClass/create',
    method: 'post',
    data
  })
}

export function readgoodClass(data) {
  return request({
    url: '/materialClass/get/' + data.id,
    method: 'get'
  })
}

export function updategoodClass(data) {
  return request({
    url: '/materialClass/update',
    method: 'post',
    data
  })
}

export function deletegoodClass(data) {
  return request({
    url: '/materialClass/delete',
    method: 'POST',
    data
  })
}
